package com.llmcu.source.spring.demo;

import com.llmcu.source.spring.demo.service.WelcomeService;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class Entrance {
	public static void main(String[] args) {
		System.out.println("hello world");
		String xmlPath = "//Users/liuling/IdeaProjects/spring-framework/spring-demo/src/main/resources/spring/spring-config.xml";
		FileSystemXmlApplicationContext applicationContext = new FileSystemXmlApplicationContext(xmlPath);
		WelcomeService welcomeService = applicationContext.getBean("welcomeService", WelcomeService.class);
		welcomeService.sayHello("强大的Spring框架");

	}
}
